package com.itheima.sh.service.impl;

import com.itheima.sh.api.HelloService;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Version: V1.0
 */
//@Service(timeout = 2000)
@Service("helloService2")
@Primary
public class HelloServiceImpl2 implements HelloService {

    @Override
    public String sayHello(String username) {


        System.out.println("HelloServiceImpl222222 sayHello is running....");

        try {
            Thread.sleep(3000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "Hello Dubbo username : " + username;
    }
}
